import { translateTitle } from '@/utils/i18n'
const TestLog = {
  TestLog: {
    search: {
      form: {
        method: 'system.log.server.base.query',
        name: 'search',
        field: [
          {
            type: 'input',
            name: 'REQUEST_UUID',
            label: translateTitle('Dams.ApplicationInterface.日志ID'),
            labelHidden: false,
          },
          {
            type: 'input',
            name: 'USER_ID',
            label: translateTitle('Dams.ApplicationInterface.用户ID'),
            labelHidden: false,
          },
          {
            type: 'input',
            name: 'SERVICE_METHOD',
            label: translateTitle('Dams.ApplicationInterface.服务方法名'),
            labelHidden: false,
          },
          {
            type: 'input',
            name: 'REQUEST_IP',
            label: translateTitle('Dams.ApplicationInterface.请求IP'),
            labelHidden: false,
          },
          {
            type: 'select',
            name: 'STATE',
            label: translateTitle('Dams.ApplicationInterface.状态'),
            labelHidden: false,
            options: [
              {
                LABEL: translateTitle('Dams.ApplicationInterface.成功'),
                CODE: 'ok',
              },
              {
                LABEL: translateTitle('Dams.ApplicationInterface.失败'),
                CODE: 'fail',
              },
            ],
          },
          {
            type: 'input',
            name: 'APP_SERVER_NAME',
            label: translateTitle('Dams.ApplicationInterface.应用服务名'),
            labelHidden: false,
          },
          {
            type: 'input',
            name: 'MODULE_ID',
            label: translateTitle('Dams.ApplicationInterface.模块ID'),
            labelHidden: false,
          },
          {
            type: 'input',
            name: 'KEYWORD',
            label: translateTitle('Dams.ApplicationInterface.关键字'),
            labelHidden: false,
          },
          {
            type: 'input',
            name: 'BUTTON_ID',
            label: translateTitle('Dams.ApplicationInterface.按钮ID'),
            labelHidden: false,
          },
          {
            type: 'input',
            name: 'MSG_RESOURCE',
            label: translateTitle('Dams.ApplicationInterface.消息来源'),
            labelHidden: false,
          },
          {
            type: 'select',
            name: 'SUB_SYSTEM',
            label: translateTitle('Dams.ApplicationInterface.所属子系统'),
            options: [],
          },
          {
            type: 'datePicker',
            name: 'DATE_TIME',
            label: translateTitle('Dams.ApplicationInterface.时间'),
            labelHidden: false,
            disabledDate: true,
            defaultTime: true,
          },
          {
            type: 'button',
            label: translateTitle('Dams.ApplicationInterface.查询'),
            labelHidden: true,
          },
        ],
      },
    },
    dialog: {
      form: {
        method: '',
        name: 'dialog',
        field: [
          {
            type: 'input',
            name: 'REQUEST_UUID',
            label: translateTitle('Dams.ApplicationInterface.日志ID'),
          },
          {
            type: 'input',
            name: 'USER_ID',
            label: translateTitle('Dams.ApplicationInterface.用户ID'),
          },
          {
            type: 'input',
            name: 'REQUEST_IP',
            label: translateTitle('Dams.ApplicationInterface.请求IP'),
          },
          {
            type: 'input',
            name: 'CREATE_TIME',
            label: translateTitle('Dams.ApplicationInterface.时间'),
          },
          {
            type: 'input',
            name: 'SERVICE_METHOD',
            label: translateTitle('Dams.ApplicationInterface.服务方法名'),
          },
          {
            type: 'input',
            name: 'API_CHS_DESCRIBED',
            label: translateTitle('Dams.ApplicationInterface.接口中文描述'),
          },
          {
            type: 'input',
            name: 'EXEC_TIME',
            label: translateTitle('Dams.ApplicationInterface.接口执行时间'),
          },
          {
            type: 'input',
            name: 'STATE',
            label: translateTitle('Dams.ApplicationInterface.状态'),
          },
          {
            type: 'input',
            name: 'SUB_SYSTEM',
            label: translateTitle('Dams.ApplicationInterface.所属子系统'),
          },
          {
            type: 'input',
            name: 'APP_SERVER_NAME',
            label: translateTitle('Dams.ApplicationInterface.应用服务名'),
          },
          {
            type: 'input',
            name: 'ERROR_CODE',
            label: translateTitle('Dams.ApplicationInterface.错误代码'),
          },
          {
            type: 'input',
            name: 'MODULE_ID',
            label: translateTitle('Dams.ApplicationInterface.模块ID'),
          },
          {
            type: 'input',
            name: 'BUTTON_ID',
            label: translateTitle('Dams.ApplicationInterface.按钮ID'),
          },
          {
            type: 'input',
            name: 'MSG_RESOURCE',
            label: translateTitle('Dams.ApplicationInterface.消息来源'),
          },
          {
            type: 'button',
            label: translateTitle('Dams.ApplicationInterface.提交'),
            labelHidden: true,
          },
        ],
        field1: [
          {
            type: 'input',
            name: 'SQL_INDEX',
            label: translateTitle('Dams.ApplicationInterface.执行序号'),
          },
          {
            type: 'input',
            name: 'SQL',
            label: translateTitle('Dams.ApplicationInterface.执行SQL'),
          },
          {
            type: 'input',
            name: 'PARAMS_S',
            label: translateTitle('Dams.ApplicationInterface.SQL参数'),
          },
          {
            type: 'input',
            name: 'ROWS',
            label: translateTitle('Dams.ApplicationInterface.受影响行'),
          },
          {
            type: 'input',
            name: 'EXEC_TIME',
            label: translateTitle('Dams.ApplicationInterface.实行用时'),
          },
          {
            type: 'input',
            name: 'RESULTS_S',
            label: translateTitle('Dams.ApplicationInterface.结果集'),
          },
          {
            type: 'button',
            label: translateTitle('Dams.ApplicationInterface.提交'),
            labelHidden: true,
          },
        ],
      },
    },
    msgMethod: 'system.log.server.msg.query',
    sqlMethod: 'system.log.server.sql.query',
  },
}
export default TestLog
